package com.wenjie.springbootbugdetection.service.impl;

import com.wenjie.springbootbugdetection.mapper.Test_managerMapper;
import com.wenjie.springbootbugdetection.model.Test_manager;
import com.wenjie.springbootbugdetection.service.Test_managerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Yang wenjie
 * @date 2021/7/7 13:58
 * Nice to Meet you!
 */
@Service
public class test_managerServiceImpl implements Test_managerService {
    @Autowired
    private Test_managerMapper test_managerMapper;
    @Override
    public List<Test_manager> select_All_Managers() {
        return test_managerMapper.selectAllManagers();
    }

    @Override
    public Integer deletetestManager(Integer id) {
        return test_managerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public Test_manager selectTestManager(Integer id) {
        return test_managerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateATestManager(Test_manager test_manager) {
        return test_managerMapper.updateByPrimaryKeySelective(test_manager);
    }

    @Override
    public int insertATestManager(Test_manager test_manager) {
        return test_managerMapper.insert(test_manager);
    }
}
